-- GENERATED SPELL FOR [Durn the Hungerer] --


function spell0_18411(pUnit, Event) --@Arcing Smash,n/a--
pUnit:FullCastSpellOnTarget(28168,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18411', 616, 1)
end

function spell1_18411(pUnit, Event) --@Force Punch,Self--
pUnit:FullCastSpellOnTarget(34771,pUnit)
pUnit:RegisterEvent('Sorts_18411', 1000, 1)
end

function Sorts_18411(pUnit, Event)
local choix_sorts_18411 = math.random(0, 1)
if choix_sorts_18411 == 0 then
pUnit:RegisterEvent('spell0_18411', 1, 1)
end
if choix_sorts_18411 == 1 then
pUnit:RegisterEvent('spell1_18411', 1, 1)
end
end

function mob18411_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18411', math.random(1500, 3000), 1)
end

function mob18411_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18411_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18411_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18411, 1, 'mob18411_Action')
RegisterUnitEvent(18411, 2, 'mob18411_Leave')
RegisterUnitEvent(18411, 3, 'mob18411_Kill')
RegisterUnitEvent(18411, 4, 'mob18411_Die')
